
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%@ page import="com.alibaba.druid.util.StringUtils" %>
<%@ page import="com.timeDeal.service.UserService" %>
<%@ page import="com.timeDeal.service.XuqiuService" %>
<%@ page import="com.timeDeal.service.ShijianchusouService" %>
<%--
  Created by IntelliJ IDEA.
  User: 叼爸爸
  Date: 2016/9/3
  Time: 21:25
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@include file="../inc/mytop.jsp"%>
<%
    UserService us = new UserService();
    XuqiuService xuqiuService = new XuqiuService() ;
    ShijianchusouService shijianchusouService = new ShijianchusouService() ;
    String  ii = String.valueOf(id) ;
    System.out.println(id);
    System.out.println("22222222222222222222222222");
    UserBean userBean = us.getAuserByid(Integer.valueOf(id)) ;
    String      number1  =  xuqiuService.getCountByJiafangid(Integer.valueOf(id)) ;
    String      number2  =  xuqiuService.getCountByYifangid(Integer.valueOf(id)) ;
   String   number3 = shijianchusouService.getCountByJIafangid(Integer.valueOf(id)) ;
%>
<form  id="bierenxinxi" name="bierenxinxi" >
    <input  class="id"  id="id" name="id" value="<%=ii%>"><%=ii%></input>
    <div class="form-group" >
        <div>
            <label>
                <h4>注册日期</h4>
            </label>
             <h2><%=userBean.getZhuceriqi()%></h2>
        </div>
        <div  >
            <label >
                <h4>信用等级</h4>
                <h2>LEVEL <%=userBean.getXinyongdengji()%></h2>
            </label>
        </div>
        <div  >
            <label >
                <h4>警告次数</h4>
                <h2><%=userBean.getJinggaocishu()%></h2>
            </label>
        </div>
        <div >
            <label >
                <h4>已发布需求完成数量</h4>
                 <h2><%=number1%></h2>
            </label>
        </div>
        <div  >
            <label >
                <h4>已发布时间完成数量</h4>
                <h2><%=number2%></h2>
            </label>
        </div>
        <div  >
            <label >
                <h4>已完成他人需求数量</h4>
                <h2><%=number3%></h2>
            </label>
        </div>
    </div>
        <%if(loginadmin!=null){%>
        <div align="center">
            <button type="button" id="jinggao"  name="jinggao" class="btn btn-info">警告一次</button>
        </div>
        <div align="center">
            <button type="button" id="jiangji"  class="btn btn-info">降低信用等级</button>
        </div>
        <%}else if(loginuser!=null){if(Integer.valueOf(id)==loginuser.getYonghuid()){%>
       <% }else {%>
        <div align="center">
            <button type="button" id="jubaote" class="btn btn-info">举报</button>
        </div>
        <%}}%>
    </div>

</form>
<%@include file="../inc/bottom.jsp"%>

